package at.fhooe.mc.duel_game;

import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;

public class GuiHelpers {
	
	private static ProgressDialog mProgressDialog;
	
	public static void showAlertDialog(Context context, String title, String message) {		
		AlertDialog.Builder builder = new AlertDialog.Builder(context);
		builder.setTitle("Alert Dialog");
		builder.setMessage("Exit");
		builder.setPositiveButton("OK", null);
		builder.show();
	}
	
	public static void showProgressDlg(Context context, String message) {
		mProgressDialog  = new ProgressDialog(context);
		mProgressDialog.setMessage(message);
		mProgressDialog.setIndeterminate(true);
		mProgressDialog.setCancelable(true);
		mProgressDialog.show();
	}
	
	public static void closeProcessDialog() {
		if(mProgressDialog != null)
			mProgressDialog.dismiss();
	}
}
